﻿using MauiApp1.View;
using MauiApp1.ViewModel;
using System.Windows.Input;

namespace MauiApp1;

public partial class MainPage : ContentPage 
{
	int count = 0;
    public ICommand NavigateCommand { get; private set; }
    public MainPage(MainPageViewModel viewModel)
	{
		InitializeComponent();

   //     NavigateCommand = new Command( async
			//() =>
   //     {
   //         Page page = (Page) new TestPage_1();
   //         await Navigation.PushAsync(page);
   //     });

   //     BindingContext = this;

        BindingContext = viewModel;

    }

	//private void OnCounterClicked(object sender, EventArgs e)
	//{
	//	count++;

	//	if (count == 1)
	//		CounterBtn.Text = $"Clicked {count} time";
	//	else
	//		CounterBtn.Text = $"Clicked {count} times";

	//	SemanticScreenReader.Announce(CounterBtn.Text);
	//}

 
}

